package cn.dgiot.fd.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.dgiot.fd.dao.IDictionarieDAO;
import cn.dgiot.fd.model.DictionarieModel;
import cn.dgiot.fd.service.IDictionarieService;

@Service
public class DictionarieServiceImpl implements IDictionarieService{

	@Autowired
	private IDictionarieDAO dictionarieDAO;
	
	@Override
	public DictionarieModel getDictionarie(DictionarieModel dictionarieModel) {
		return dictionarieDAO.getDictionarie(dictionarieModel);
	}

	@Override
	public List<DictionarieModel> getDictionarieByType(DictionarieModel dictionarieModel) {
		return dictionarieDAO.getDictionarieByType(dictionarieModel);
	}

	@Override
	public void insertDictionarie(DictionarieModel dictionarieModel) {
		dictionarieDAO.insertDictionarie(dictionarieModel);
	}

	@Override
	public void updateDictionarie(DictionarieModel dictionarieModel) {
		dictionarieDAO.updateDictionarie(dictionarieModel);
	}

}
